#![crate_type = "lib"]
#![crate_name = "rary"]
// 上面两行全局属性，只在rustc下生效，cargo下无效
//https://rustwiki.org/zh-CN/rust-by-example/attribute/crate.html
pub fn public_function() {
    println!("called rary's `public_function()`");
}

fn private_function() {
    println!("called rary's `private_function()`");
}

pub fn indirect_access() {
    print!("called rary's `indirect_access()`, that\n> ");

    private_function();
}
// rustc --crate-type=lib lib.rs --crate-name=rary
